package e

const (
	JsonHeader = "json"
	UrlEncodeHeader = "urlencoded"
)


var HeaderMaps = map[string]map[string]string{
	JsonHeader: {"Content-Type": "application/json"},
	UrlEncodeHeader: {"Content-Type": "application/x-www-form-urlencoded"},
}

func GetHeaderMap(header string) map[string]string {
	h, ok := HeaderMaps[header]
	if ok {
		return h
	}

	return HeaderMaps[JsonHeader]
}